package com.guoxue.dao.impl;

import org.springframework.stereotype.Repository;

import com.guoxue.dao.IBackUsersDao;
import com.guoxue.domain.BackUserVo;
@Repository
public class BackUsersDaoImpl extends BaseDaoImpl<BackUserVo> implements IBackUsersDao {

	@Override
	public BackUserVo getUser(String account) {
		return get("FROM BackUserVo b WHERE b.tel=? or b.account=?", new Object[] {account,account});
	}

	@Override
	public void saveUser(BackUserVo user) {
		saveOrUpdate(user);
	}

}
